# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension do
  @moduledoc """
  Listing dimensions for the asset group listing group filter.

  ## Attributes

  *   `productBiddingCategory` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductBiddingCategory.t`, *default:* `nil`) - Bidding category of a product offer.
  *   `productBrand` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductBrand.t`, *default:* `nil`) - Brand of a product offer.
  *   `productChannel` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductChannel.t`, *default:* `nil`) - Locality of a product offer.
  *   `productCondition` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductCondition.t`, *default:* `nil`) - Condition of a product offer.
  *   `productCustomAttribute` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductCustomAttribute.t`, *default:* `nil`) - Custom attribute of a product offer.
  *   `productItemId` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductItemId.t`, *default:* `nil`) - Item id of a product offer.
  *   `productType` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductType.t`, *default:* `nil`) - Type of a product offer.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :productBiddingCategory =>
            GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductBiddingCategory.t()
            | nil,
          :productBrand =>
            GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductBrand.t()
            | nil,
          :productChannel =>
            GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductChannel.t()
            | nil,
          :productCondition =>
            GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductCondition.t()
            | nil,
          :productCustomAttribute =>
            GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductCustomAttribute.t()
            | nil,
          :productItemId =>
            GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductItemId.t()
            | nil,
          :productType =>
            GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductType.t()
            | nil
        }

  field(:productBiddingCategory,
    as:
      GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductBiddingCategory
  )

  field(:productBrand,
    as:
      GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductBrand
  )

  field(:productChannel,
    as:
      GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductChannel
  )

  field(:productCondition,
    as:
      GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductCondition
  )

  field(:productCustomAttribute,
    as:
      GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductCustomAttribute
  )

  field(:productItemId,
    as:
      GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductItemId
  )

  field(:productType,
    as:
      GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductType
  )
end

defimpl Poison.Decoder,
  for:
    GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension do
  def decode(value, options) do
    GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension.decode(
      value,
      options
    )
  end
end

defimpl Poison.Encoder,
  for:
    GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
